<template>
	<view class="category-page global__theme0">
		<cu-custom bgImage="https://image.weilanwl.com/color2.0/plugin/wdh2236.jpg" :isBack="true">
			<block slot="backText"></block>
			<block slot="content">{{article.title || '小强哥的博客'}}</block>
		</cu-custom>
		<view class="fe-tags">
			<view class="fe-tags__title">4 Categories in total</view>
			<view class="fe-tags__container">
				<view class="fe-tags__item fe-tags__item--active">
					# 分类
				</view>
				<view class="fe-tags__item">
					# 分类
				</view>
				<view class="fe-tags__item">
					# 分类
				</view>
				<view class="fe-tags__item">
					# 分类
				</view>
			</view>
		</view>

		<view class="fe-article__container">
			<view class="fe-article__item">
				<view class="fe-article__item-link">
					<view class="fe-article__item-time">2020-12-12</view>
					<view class="fe-article__item-title">23432432423432</view>
				</view>
			</view>
			<view class="fe-article__item">
				<view class="fe-article__item-link">
					<view class="fe-article__item-time">2020-12-12</view>
					<view class="fe-article__item-title">23432432423432</view>
				</view>
			</view>
			<view class="fe-article__item">
				<view class="fe-article__item-link">
					<view class="fe-article__item-time">2020-12-12</view>
					<view class="fe-article__item-title">23432432423432</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
			};
		},
		methods: {
			showModal(e) {
			},
		},
	}
</script>

<style lang="scss">

	.category-page {
		min-height: 100vh;
		background: url("#{$http}/VKCEYUGU-unidf07c07/05192530-d070-11ea-b244-a9f5e5565f30.png") repeat;
	}

	.fe-tags {
		padding: 1.2rem;
		background-color: #fff;
		&__title {
			margin: 0 0 1.5rem;
			font-size: 1.8rem;
		}
		&__container {
			width: 100%;
			background-color: #fff;
		}
		&__item {
			display: inline-block;
			margin: 0 1rem 1rem 0;
			padding: 0.2em 1em 0.1em;
			border-radius: 3px;
			line-height: 2;
			background-color: var(--box-back-color);
			transition: background-color 0.1s ease-in;
			&--active {
				color: #fff;
				background-color: var(--theme-color);
			}
		}
	}

	.fe-article {
		&__container {
			padding: 24rpx;
		}
		&__empty {
			padding: 6px 32px;
			text-align: center;
		}
		&__item {
			display: flex;
			align-items: center;
			&-link {
				position: relative;
				display: block;
				margin-left: 1.5rem;
				padding: .5rem 0;
				line-height: 2rem;
				transition: margin-left .4s;
				&:before {
					position: absolute;
					top: 1.5rem;
					left: -1rem;
					content: "-";
					opacity: .5;
					transform: translateY(-50%);
				}
				&:hover {
					margin-left: 1rem;
				}
			}
			&-time {
				float: left;
				padding-right: .5rem;
				white-space: nowrap;
				letter-spacing: 1px;
				font-size: .85rem;
				opacity: .5;
				width: 6rem;
			}
			&-title {
				display: table-cell;
				padding-top: .1rem;
				font-size: 1rem;
			}
		}
	}
</style>
